package com.netik.adapters;




import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.netik.main.R;

public class DataViewnew extends LinearLayout {
	private TextView str1;
	private TextView str2;
	private TextView str3;
	
	
	
	public DataViewnew(Context context, String text1, String text2, String text3) {
		super(context);
		LayoutInflater inflater = (LayoutInflater)context.getSystemService(
		Context.LAYOUT_INFLATER_SERVICE);

		//Log.d("allvalues",text1+" "+text2);
		
		inflater.inflate(R.layout.dataviewnew, this, true);
		this.str1 =(TextView) findViewById(R.id.rowtext1);
    	this.str2 =(TextView) findViewById(R.id.rowtext2);
    	this.str3 =(TextView) findViewById(R.id.rowtext3);
    	    	    	
    	    	
	}
	public void setField1(String text1){
		str1.setText(text1);
	}
	public void setField2(String text2){
		str2.setText(text2);
	}
	public void setField3(String text3){
		str3.setText(text3);
	}
	
}